home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Technology Seed / August 1998 ADC Seed CD.toast / Mac OS 8.5b2 / allegro-b2-pseudo-SDK / RIncludes / UnicodeUtilities.r < prev   
Encoding:
Text File  |  1998-07-17  |  1.8 KB  |  53 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        UnicodeUtilities.r
  3.  
  4.      Contains:    Types, constants, prototypes for Unicode Utilities (Unicode input and text utils)
  5.  
  6.      Version:    Technology:    Allegro
  7.                  Release:    Allego Seed, Use with 3.1 Universal Interfaces
  8.  
  9.      Copyright:    © 1997-1998 by Apple Computer, Inc., all rights reserved.
  10.  
  11.      Bugs?:        Please include the the file and version information (from above) with
  12.                  the problem description.  Developers belonging to one of the Apple
  13.                  developer programs can submit bug reports to:
  14.  
  15.                      devsupport@apple.com
  16.  
  17. */
  18.  
  19. #ifndef __UNICODEUTILITIES_R__
  20. #define __UNICODEUTILITIES_R__
  21.  
  22. #ifndef __CONDITIONALMACROS_R__
  23. #include "ConditionalMacros.r"
  24. #endif
  25.  
  26. #define kUCKeyOutputStateIndexMask         0x4000
  27. #define kUCKeyOutputSequenceIndexMask     0x8000
  28. #define kUCKeyOutputTestForIndexMask     0xC000                /*  test bits 14-15 */
  29. #define kUCKeyOutputGetIndexMask         0x3FFF                /*  get bits 0-13 */
  30.  
  31. #define kUCKeyStateEntryTerminalFormat     0x0001
  32. #define kUCKeyStateEntryRangeFormat     0x0002
  33.  
  34. #define kUCKeyLayoutHeaderFormat         0x1002
  35. #define kUCKeyLayoutFeatureInfoFormat     0x2001
  36. #define kUCKeyModifiersToTableNumFormat  0x3001
  37. #define kUCKeyToCharTableIndexFormat     0x4001
  38. #define kUCKeyStateRecordsIndexFormat     0x5001
  39. #define kUCKeyStateTerminatorsFormat     0x6001
  40. #define kUCKeySequenceDataIndexFormat     0x7001
  41.  
  42. #define kUCOutputBufferTooSmall         (-25340)            /*  Output buffer too small for Unicode string result */
  43. #define kUCKeyActionDown                 0                    /*  key is going down */
  44. #define kUCKeyActionUp                     1                    /*  key is going up */
  45. #define kUCKeyActionAutoKey             2                    /*  auto-key down */
  46. #define kUCKeyActionDisplay             3                    /*  get information for key display (as in Key Caps)             */
  47.  
  48. #define kUCKeyTranslateNoDeadKeysBit     0                    /*  Prevents setting any new dead-key states */
  49. #define kUCKeyTranslateNoDeadKeysMask     0x00000001
  50.  
  51. #endif /* __UNICODEUTILITIES_R__ */
  52.  
  53.